1 Word Processing

You can format text in bold or italic.

This is just text: exp(1).

2 Code Chunks

In a code chunk you can calculate the result.

exp(1)
## [1] 2.718282

3 Plots

# install.packages("plotly")  # run this, if you did not install plotly package before.

library(plotly)
## Loading required package: ggplot2
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout
data("volcano")
plot_ly(z = volcano, type = "surface")